package vashion.azeroth.core.manager.personal.tran;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vashion.azeroth.core.dao.BaseDao;
import vashion.azeroth.core.manager.impl.BaseManagerImpl;
import vashion.azeroth.core.personal.tran.dao.PersonalSnapshotDao;
import vashion.azeroth.core.personal.tran.pojo.PersonalSnapshot;
import vashion.azeroth.core.personal.tran.pojo.PersonalSnapshotExt;

@Service
public class PersonalSnapshotManager extends BaseManagerImpl<PersonalSnapshot> {

	@Autowired
	private PersonalSnapshotDao snapshotDao;
	
	@Override
	public BaseDao<PersonalSnapshot> getDao() {
		return snapshotDao;
	}
	
	public PersonalSnapshot getSnapshot(PersonalSnapshot snapshot) {
		return snapshotDao.getSnapshot(snapshot);
	}
	
	public List<PersonalSnapshotExt> queryReturnGoodsOrder(PersonalSnapshot snapshot) {
		return snapshotDao.queryReturnGoodsOrder(snapshot);
	}
	
	public int queryReturnGoodsOrderCnt(PersonalSnapshot snapshot) {
		return snapshotDao.queryReturnGoodsOrderCnt(snapshot);
	}
	
	public List<PersonalSnapshot> queryEnableRebateOrder() {
		return snapshotDao.queryEnableRebateOrder();
	}

}
